home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
Freeware
/
DiskMaster
/
Rexx
/
DMCopyCmt.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
2002-10-27
|
906b
|
50 lines
/* $VER: DMCopyCmt.rexx 1.0 (29.9.98) by J. Tierney
DiskMaster II Copy Comment v1.0
9/29/98 J. Tierney
Function: All selected entries in the Dest window recieve the same comment
as the 1st selected entry in the Source window.
Usage: DMCopyCmt.rexx
Requires DiskMaster v2.4b16 (9/26/98) or above.
*/
OPTIONS RESULTS
DIRLIST var slist SEL COMMENT
'WINDOW DEST'
DIRLIST VAR dlist SEL
'STATUS P'
path = result
IF RIGHT(path, 1) ~= ':' THEN path = path || '/'
IF (slist.name.0 > 0) & (dlist.name.0 > 0) THEN DO
cmt = slist.comment.1
IF cmt = 'SLIST.COMMENT.1' THEN DO
DO i = 1 TO dlist.name.0
fn = path || dlist.name.i
ADDRESS COMMAND 'C:FileNote' fn 'QUIET'
END
'NEWDIR' path
END
ELSE DO
cmt = '"' || cmt || '"'
DO i = 1 TO dlist.name.0
fn = path || dlist.name.i
COMMENT fn cmt
END
END
END
'WINDOW DEST'
EXIT 0